﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="Lottery.Client.SL.Controls.DealMsg" Margin="0,1">

    <Border BorderBrush="#FF838383" BorderThickness="1" CornerRadius="5" Background="#FF252525">
        <Grid x:Name="LayoutRoot" Margin="2">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Image Height="25" HorizontalAlignment="Left" VerticalAlignment="Center" Width="25" Source="../Images/msg.png" Stretch="None" Margin="2"/>
            <StackPanel Grid.Column="1">
                <TextBlock x:Name="lbTitle" VerticalAlignment="Center" Grid.Column="1" Foreground="Lime" d:LayoutOverrides="Width" Text="{Binding Title}" />
                <TextBlock x:Name="lbContent" TextWrapping="Wrap" Foreground="Orange" Text="" />
                <TextBlock x:Name="lbMsgTime" Text="{Binding MsgTime,StringFormat=\{0:MM-dd HH:mm:ss\}}" Foreground="Gray" HorizontalAlignment="Right"/>
            </StackPanel>
            <Button x:Name="bt_close" HorizontalAlignment="Right" Content="X" d:LayoutOverrides="Height" Grid.Column="1" VerticalAlignment="Top" Style="{StaticResource buttonStyle}"/>
        </Grid>
    </Border>
</UserControl>
